<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!-- PÁGINA LOGIN TRIMARK -->
<tiles:insertTemplate template="/WEB-INF/jsp/template_index.jsp">
  	  	
   	<c:forEach var="error" items="${error}">
	    ${error} <br />
	</c:forEach>
  	
    <tiles:putAttribute name="body">
    	<div class="all">
    		<form method="POST" action="<c:url value="/login"/>">
    			<fieldset>
					<legend>Efetue o login</legend>
				    
				    <label for="login">Login:</label>
				    <input id="login" type="text" name="usuario.login"/>
					
				    <label for="senha">Senha:</label>
				    <input id="senha" type="password" name="usuario.senha"/>
					
				    <button type="submit">Login</button>
				</fieldset>
    		</form>
    	</div>
    </tiles:putAttribute>
  	
</tiles:insertTemplate>